#!/bin/sh
#
#
#

# klikaci vypisovani hvezd ze souboru

echo "Select 0.1"
echo
echo -n "Run saoimage and view your image [ENTER]"
read

echo -n "Try menu Cursor, select the stars in preffered order [ENTER]"
read

echo -n "Click Region/Write and save selected stars to file saoimage.reg. OK? "
read

echo -n "Give filename for equivalent image (STR or MAT file): "
read N
echo "$N" > select.in

echo "Lines ..."
cat saoimage.reg | sed -e "/#/d;s/POINT(/ /; s/)/ /; s/,/ /" >> select.in
#cat select.in
#cat select.in | ./select
RADEK=`cat select.in | $HOME/munipack-*/script/select`
echo $RADEK

echo "Bye."
